import 'package:json_annotation/json_annotation.dart';

part 'home_menu.g.dart';

@JsonSerializable()
class HomeMenuModel {
  HomeMenuModel();

  late String icon;
  late String name;

  int index = 0;

  // HomeMenuModel({
  //   required this.icon,
  //   required this.name,
  //   required this.index,
  // });

  factory HomeMenuModel.fromJson(Map<String, dynamic> json) =>
      _$HomeMenuModelFromJson(json);
  Map<String, dynamic> toJson() => _$HomeMenuModelToJson(this);
}
